<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
<script th:src="@{jquery-1.8.2.min.js}" type="text/javascript"></script>
<script th:inline="javascript">
	function hide(username) {
		$("#up"+username).hide();
	}
	var data=[[${users}]];
	console.log(data[1].age);
</script>
</head>
<body>
	<div th:if="${not #lists.isEmpty(users)}">
		<ul>
			<li th:each="user:${users}"><span th:text="${user.name}"></span>
				<span th:text="${user.age}"></span>
				<button th:onclick="'hide(\''+${user.name}+'\')'">隐藏</button> <span
				class="aaa" th:id="'up'+${user.name}+''" style="display: block;">sssss</span></li>
		</ul>
	</div>

</body>
</html>